package dkzcm.club.article.application.controller;

import dkzcm.club.article.infra.basic.entity.ArticleCategory;
import dkzcm.club.article.infra.basic.service.ArticleCategoryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author: xk
 * @version: 1.0
 * Create by 2024/11/4 12:54
 */

@RestController
public class ArticleController {
    @Resource
    private ArticleCategoryService articleCategoryService;

    @GetMapping("/test")
    public String test() {
        System.out.println("/test");
        ArticleCategory articleCategory = articleCategoryService.queryById(1L);
        System.out.println("---" + articleCategory);
        return articleCategory.getCategoryName();
    }
}
